import { _decorator, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LifeUI')
export class LifeUI extends Component {

    @property(Label)
    life:Label = null;
    
    start() {

    }

    updateLife(life:number) {
        this.life.string = life.toString();
    }

    update(deltaTime: number) {
        
    }
}

